public class HomeWork08_02{
    public static void main(String[] args){
        float a = 1f;
        float b = 2f;
        float c = 3f;
        float ans = 0;
        for(int i = 0; i < 20; i++){
            ans += b/a + c/b;
            
            float tmp = b + c;
            a = b;
            b = c;
            c = tmp;
        }
        System.out.println("ans = " + ans);
    }
}